import request from '@/sheep/request';

export default {
	// 个人账号
	userInfo: (data) =>
	  request({
	    url: 'api/user/index',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	  }),
    // 消费记录
    balance: (data) =>
		request({
		  url: 'api/balance/index',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	
	}),
	// 提现
	withdrawAdd: (data) =>
		request({
		  url: 'api/withdraw/add',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 次数兑换列表/
	package: (data) =>
		request({
		  url: 'api/package/index',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 口令兑换
	exchangeCode: (data) =>
		request({
		  url: 'api/exchange/exchangeCode',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 手机号兑换次数/
	addMobile: (data) =>
		request({
		  url: 'api/exchange/addMobile',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 个人/团体认证
	createAuth: (data) =>
		request({
		  url: 'api/authentication/createAuth',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 认证信息/
	authCon: (data) =>
		request({
		  url: 'api/authentication/authCon',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 编辑认证信息/
	cationEdit: (data) =>
		request({
		  url: 'api/authentication/edit',
		  method: 'POST',
		  data,
		  custom: {
				showLoading: false,
				showError: false,
		  },
	}),
	// 上传导游证件
	addGuide: (data) =>
	  request({
	    url: 'api/guide/add',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 导游认证详情/api/guide/con
	guideCon: (data) =>
	  request({
	    url: 'api/guide/con',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 编辑导游认证/api/guide/edit
	guideEdit: (data) =>
	  request({
	    url: 'api/guide/edit',
	    method: 'POST',
	    data,
	    custom: {
				showLoading: false,
				showError: false,
	    },
	}),
	// 区域查询
	area: (data) =>
	  	request({
		url: 'api/index/area',
		method: 'POST',
		data,
		custom: {
				showLoading: false,
				showError: false,
	  	},
	}),
	// 区域查询
	cancleAcc: (data) =>
	  	request({
		url: 'api/user/cancle_acc',
		method: 'POST',
		data,
		custom: {
				showLoading: false,
				showError: false,
	  	},
	}),
	// 客服聊天记录
	serviceList: (data) =>
	  	request({
		url: 'api/chat/service_list',
		method: 'POST',
		data,
		custom: {
				showLoading: false,
				showError: false,
	  	},
	}),
	// 发送客服消息
	addService: (data) =>
	  	request({
		url: 'api/chat/add_service',
		method: 'POST',
		data,
		custom: {
				showLoading: false,
				showError: false,
	  	},
	}),
	
};
